﻿<%@ Page Language="C#" MasterPageFile="~/aspnet/admin/ForValidation.master" AutoEventWireup="true" CodeFile="CX_Create_HTML_Column.aspx.cs" Inherits="aspnet_admin_bock_Create_Create_HTML_Column" Title="按栏目生成，与最新生成" %>
<%@ Register Assembly="web表单验证控件" Namespace="CheckForm" TagPrefix="cc1" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder2" Runat="Server">
<script language="javascript" type="text/javascript" src="../../inc/js/ajaxrequest.js"></script>
<!--loading 代码-->
<div id="LoadingDiv" style="display:none;">
      <div>
        <div  style="color: #FFFF00; text-align:center;">
        <img src="~/aspnet/admin/images/loading.gif" alt="正在创建文件请稍等" width="18" height="18" align="middle" id="IMG1" runat="server" /> <span class="STYLE5">正在创建文件......</span></div>
      </div>
      <div style=" text-align:center;">共<asp:Label ID="filesum" runat="server"></asp:Label>个文件 估计剩余时间 
          <asp:Label ID="temesx" runat="server" ></asp:Label></div>
    </div>
<!--loading 结束-->
    
    <table align="center" border="0" cellpadding="2" cellspacing="1" class="border" height="116"
        width="100%">
        <tr>
            <td align="center" class="topbg" colspan="2" style="height: 30px">
                <strong>生成管理</strong></td>
        </tr>
        <tr>
            <td class="tdbg" style="width: 223px; height: 27px">
                提示信息:</td>
            <td class="tdbg" style="width: 787px; height: 27px">
                <asp:Label ID="tt" runat="server" CssClass="font-4"></asp:Label>
                &nbsp;&nbsp; 页面生成时 请不要执行任何操作</td>
        </tr>
    </table>
    <br />
    <table align="center" border="0" cellpadding="2" cellspacing="1" class="border"
        height="116" width="100%">
        <tr align="center">
            <td class="topbg" colspan="3" style="height: 30px">
                <strong>生成静态页面操作</strong></td>
        </tr>
        <tr>
            <td class="tdbg" style="height: 27px" width="223">
                新闻生成:</td>
            <td colspan="2" class="tdbg" style="height: 27px">
                <asp:TextBox ID="TextBox1" runat="server" Width="55px" MaxLength="3"></asp:TextBox>
                &nbsp;
                <asp:Button ID="Button2" runat="server" CssClass="box"  Text="生成最新" OnClick="CreaeNews" /></td>
        </tr>
        <tr>
            <td class="tdbg" style="height: 27px" width="223">
                页面生成操作:</td>
            <td class="tdbg" colspan="2" style="height: 27px">
                <asp:Button ID="Button1" runat="server" CssClass="box" OnClick="Button1_Click" Text="首页生成" /></td>
        </tr>
        <tr>
            <td class="tdbg" style="height: 27px" width="223">
                栏目生成操作:</td>
            <td colspan="2" class="tdbg" style="height: 27px">
                <asp:Button ID="Button3" runat="server" CssClass="box" Text="生成所有栏目" OnClick="CreateAll" />
                &nbsp;&nbsp;
                <asp:Button ID="Button5" runat="server" CssClass="box" Text="反向生成所有栏目" OnClick="CreateAllRe" /></td>
        </tr>
        <tr>
            <td class="tdbg" style="height: 27px">
                按栏目生成(选择栏目后生成):</td>
            <td width="243" valign="middle" class="tdbg" style="height: 27px">
                <label>
                <asp:ListBox ID="ListBox1" runat="server" Height="300" Width="325"></asp:ListBox></label></td>
            <td width="941" valign="middle" class="tdbg" style="height: 27px"><span class="tdbg" style="height: 27px">
              <asp:Button
                        ID="Button4" runat="server" CssClass="box" Text="生成" OnClick="Button4_Click" />              
            </span></td>
        </tr>
        <tr>
            <td class="tdbg" style="height: 27px">                </td>
            <td colspan="2" class="tdbg" style="height: 27px">                </td>
        </tr>
        <tr>
            <td class="tdbg" height="27">                </td>
            <td height="27" colspan="2" class="tdbg">                </td>
        </tr>
        <tr>
            <td class="tdbg" height="27">            </td>
            <td height="27" colspan="2" class="tdbg">            </td>
        </tr>
        <tr>
            <td class="tdbg" colspan="3" height="27">
        </td>
        </tr>
    </table>
    
    <div id="cc"></div>
<script language="javascript" type="text/javascript" >
switchBar('');
switchBar('');
//开始发送数据
//参数 为 动作
// subid 为栏目id
function sendNue(parame,subid)
{
 switchBar('');
 sADiv('');//把所有层原素放到这个层下;
   var ajax=new AJAXRequest();
   
   //alert(subid);
   if(subid=="0")
   {
   
       ajax.get(
       "CX_CreateFileShu.ashx?action="+parame+"&ShuID=<%=SumID %>&TimeID=<%=TimeID %>",
               //回调函数
        function(obj) { 
        
               eval(obj.responseText);
               }
       
        );
        
        document.getElementById("LoadingDiv").style.display="compact";  
    }
    else
    {
               ajax.get(
       "CX_CreateFileShu.ashx?action="+parame+"&ShuID=<%=SumID %>&TimeID=<%=TimeID %>&ColID="+subid,
               //回调函数
        function(obj) { 
        
               eval(obj.responseText);
               }
       
        );
        
        document.getElementById("LoadingDiv").style.display="compact";
        
        
    }
    
}



///动态变时间
function dottime()
{
   
    var objtt = document.getElementById("id").innerText;
    if(objtt >=0)
    {
        objtt = (parseInt(objtt)-10);
    }
    else
    {
      document.getElementById("LoadingDiv").style.display = "none";  
    }
    
    dottime();
    
}
</script>

</asp:Content>
